<?php namespace app\common\validate;


use think\Validate;


class AuctionGood extends Validate {
    protected $rule = [
        'name'  => 'require',
        'desc'  => 'require',
        'images'  => 'require',
        'range'  => 'require',
        'price'  => 'require',
        'category_id'  => 'require',
        'contacts'  => 'require',
        'telephone'  => 'require',
    ];
    protected $message = [
        'name.require' => '商品标题必须填',
        'desc.require' => '描述描述必须填',
        'images.require' => '必须上传一张图',
        'range.require' => '加价幅度必须填',
        'price.require' => '起拍价必须填',
        'category_id.require' => '分类必须选择',
        'contacts.require' => '联系人必须填',
        'telephone.require' => '联系电话必须天',
    ];

}